package kcms.db;

// Generated Sep 18, 2015 4:49:32 PM by Hibernate Tools 4.0.0

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

import org.springframework.stereotype.Component;

/**
 * Assignmentcontent generated by hbm2java
 */
@Component
@Entity
@Table(name = "assignmentcontent", catalog = "kcms")
public class Assignmentcontent implements java.io.Serializable {

	private Integer assignmentid;
	private String name;
	private String resource;
	private Date uploadtime;
	
	
	public Assignmentcontent() {

	}

	public Assignmentcontent(Integer assignmentid, String name, String resource,
			Date uploadtime) {
		this.assignmentid = assignmentid;
		this.name = name;
		this.resource = resource;
		this.uploadtime = uploadtime;
	}
	@Id
	@Column(name = "assignmentid", nullable = false , unique = true)
	public Integer getAssignmentid() {
		return assignmentid;
	}

	public void setAssignmentid(Integer assignmentid) {
		this.assignmentid = assignmentid;
	}
	@Column(name = "name", nullable = true, length = 500)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "resource", nullable = true, length = 500)
	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "uploadtime", nullable = true, length = 19)
	public Date getUploadtime() {
		return uploadtime;
	}

	public void setUploadtime(Date uploadtime) {
		this.uploadtime = uploadtime;
	}
	
	

	
	
}
